package com.graduation.service;

import com.graduation.model.PromotionEntity;
import com.graduation.mapper.PromotionMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description 促销活动业务处理
 * @Author YaoQi
 * @Date 2018/3/20 0:07
 */
@Service
public class PromotionService {

    @Resource
    private PromotionMapper promotionMapper;

    /**
     * 获取所有的活动实体
     *
     * @return 返回实体列表
     */
    public List<PromotionEntity> listPromotion() {

        return promotionMapper.getPromotionList();
    }
}
